package com.varian.service.util;

import com.varian.redis.util.RedisUtil;
import com.varian.service.constant.ServiceConstant;
import lombok.experimental.UtilityClass;

/**
 * @author ben
 * @since 2025/2/9
 */
@UtilityClass
public class ParamUtil {

    public String getStr(String paramCode){
        String key = ServiceConstant.SYS_PARAM_KEY.format(paramCode);
        if (RedisUtil.hasKey(key)) {
            return RedisUtil.Value.get(key);
        }
        return null;
    }
}
